<?php


namespace app\api\controller;

use think\Db;
use think\Controller;
class Base extends Controller
{
    //接口回执
    public function api_result($code,$message,$data){
        echo json_encode(array('code'=>$code,'message'=>$message,'data'=>$data));
    }
    //验证码
    public function isValidMobileNumber($mobileNumber) {
        return preg_match('/^1\d{10}$/', $mobileNumber) ? true : false;
    }
}